package com.qing.springcloud.service;

import com.qing.springcloud.mapper.StockMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService{

    @Autowired
    private StockMapper stockMapper;
    @Override
    public void reduce(Integer productId, Integer num) {
        stockMapper.reduce(productId,num);
    }
}
